<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/zTree/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/css/fileinput.min.css">
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/diyUpload/diyUpload.css">
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-select-1.12.4/css/bootstrap-select.min.css">

    <style>
        .form-control:focus,
        .single-line:focus {
            border-color: #0e9aef !important;
        }

        .checkbox-inline {
            line-height: 5px;
        }
        .file-uploadImgs {
            margin: 10px;
            border: 1px dashed gainsboro;
            border-radius: 5px;
        }
        /* 谷歌、苹果浏览器 */
        ::-webkit-scrollbar {
            display: none;
        }
        .form-control {
            margin-bottom: 8px;
        }

        .radio-inline {
            line-height: 5px;
        }
        .dropdown-menu.inner {
            background-color: #1ab394;
            color: white;
        }
        .dropdown-menu.open {
            border-radius: 5px;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app">

    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <form id="Form" autocomplete="off">
                <div style="padding: 0">
                    <input type="hidden" name="id" value="">
                    <input type="hidden" name="version" value="0">
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4 form-group">
                            <label class="form-inline">投票名称</label>
                            <input class="form-control" type="text" name="name"
                                   value="" placeholder="请输入投票名称">
                        </div>
                        <div class="col-sm-4 form-group">
                            <label class="form-inline">截止时间</label>
                            <input class="form-control" name="beginTime"
                                   onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"
                                   placeholder="请选择开始时间" style="cursor: pointer">
                        </div>
                        <div class="col-sm-4 form-group">
                            <label class="form-inline">截止时间</label>
                            <input class="form-control" name="expiredTime"
                                   onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"
                                   placeholder="请选择截止时间" style="cursor: pointer">
                        </div>
                        <div class="col-sm-4 form-group">
                            <label class="form-inline">排序</label>
                            <input class="form-control" type="number" name="sort"
                                   value="100" placeholder="请输入排序">
                        </div>

                        <div class="col-sm-4 form-group">
                            <label class="form-inline">限制</label>
                            <div>
                                <select class="form-control" name="limitation" >
                                    <option value="1">一日一票</option>
                                    <option value="0">仅投一票</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-4 form-group">
                            <label class="form-inline">是否置顶</label>
                            <div>
                                <select class="form-control" name="isTop">
                                    <option value="0">否</option>
                                    <option value="1">是</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-4 form-group">
                            <label class="form-inline">状态</label>
                            <div>
                                <select class="form-control" name="isPush">
                                    <option value="1">发布</option>
                                    <option value="0">不发布</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12 form-group">
                            <label class="form-inline">标签</label>
                            <div>
                                <select class="selectpicker form-control" id="tags" multiple name="tags"
                                        data-actions-box="false" >
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12 form-group">
                            <label class="form-inline">提示信息</label>
                            <input class="form-control" type="text" name="notes"
                                   value="" placeholder="请输入提示信息">
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12 form-group">
                            <label class="form-inline">简介</label>
                            <textarea name="digest" class="form-control" rows="3" placeholder="请输入简介">{{desc}}</textarea>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12 form-group">
                    <label class="form-inline">详情</label>
                    <div>
                        <input id="articleContent" type="hidden" name="details">
                        <div id="editor">
                        </div>
                    </div>
                </div>


                <div class="col-sm-12 form-group">
                    <div class="col-sm-6 form-group" style="margin-top: 10px" id="file">
                        <label class="form-inline">封面图片（仅传一张）<font style="color: red">尺寸：【360 * 220】</font></label>
                        <input id="articleImg" type="hidden" name="imgId" >
                        <input type="hidden" id="oldImgId" name="oldImgId" >
                        <div class="file-loading">
                            <input id="fileUploadBtn" type="file" name="file">
                        </div>
                    </div>
                    <div class="col-sm-6 form-group" style="margin-top: 10px" id="audioFile">
                        <label class="form-inline">背景音乐</label>
                        <input id="audioId" type="hidden" name="audioId" >
                        <input type="hidden" id="oldAudioId" name="oldAudioId" >
                        <div class="file-loading">
                            <input id="fileUploadAudioBtn" type="file" name="file">
                        </div>
                    </div>
                </div>
                <div class="form-group" style="margin-top: 10px" id="files">
                    <label class="form-inline">详情图片（可传多张,红色边框为视频）<font style="color: red">尺寸：【720 * 440】</font></label>
                    <div class="file-uploadImgs">
                        <div style="padding: 20px;">
                            <ul class="upload-ul clearfix">
                                <li class="upload-pick">
                                    <div class="webuploader-container clearfix" id="uploadImgs">
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>

                <div style="text-align: center">
                    <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)">保存</button>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)">保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="../../../../../../public-tools/pc/plugins/zTree/jquery.ztree.core.min.js"></script>
<script type="text/javascript" src="../../../../../../public-tools/pc/plugins/zTree/jquery.ztree.excheck.min.js"></script>
<script src="../../../../../../public-tools/pc/plugins/wangEditor/wangEditor-video.js"></script>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/js/fileinput.min.js"></script>
<script src="../../../../../../public-tools/pc/plugins/diyUpload/webuploader.min.js"></script>
<script src="../../../../../../public-tools/pc/plugins/diyUpload/diyUpload.js"></script>
<script src="../../../../../../public-tools/pc/plugins/My97DatePicker/WdatePicker.js"></script>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-select-1.12.4/js/bootstrap-select.min.js"></script>
<script src="../../../../js/business-manage/vote/list/edit.js"></script>
</body>
</html>
